package de.guice.prototype.bindingannotations;

import com.google.inject.Inject;

public class GaulBean {

	private String message;
	private Gaul asterix;
	private Gaul obelix;

	public GaulBean() {
		
	}

	@Inject
	public GaulBean(@BindAsterix Gaul asterix, @BindObelix Gaul obelix) {
		this.asterix = asterix;
		this.obelix = obelix;
	}

	public void makeObelixDrinkPotion2() {
		this.message = obelix.drinkMagicPotion();
	}

	public void makeAsterixDrinkPotion() {
		this.message = asterix.drinkMagicPotion();
	}

	public String getMessage() {
		return message;
	}
	
	

}
